Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add catalog #4915

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

add catalog #4915

wants to merge 2 commits into from

Conversation

mmromanova
Copy link

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Thank you for your hard work on this project! 😊 While you've made great progress, there are a few critical issues that need to be addressed before we can approve the pull request. Specifically, there are several SCSS variables used across your stylesheets that are not defined, which can lead to compilation errors and affect the functionality of your styles. Additionally, the card width does not meet the specified requirement, and the data-qa attribute is applied incorrectly. Please address these issues to ensure your code meets the task requirements. Keep up the great work, and I'm confident you'll have this sorted in no time! 🚀

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

src/index.html Outdated
Comment on lines 125 to 381
</div>
<button class="to-buy" data-qa="card-hover"> BUY </button>
</section>

<section class="product">
<div class="card" data-qa="card">
<div class="card__name">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</div>
<div class="card__product-code">
Product code: 195434
</div>
</div>
<div class="rate">
<div class="rate--stars rate--stars-4">
<div class="rate--stars__star"></div>
<div class="rate--stars__star"></div>
<div class="rate--stars__star"></div>
<div class="rate--stars__star"></div>
<div class="rate--stars__star"></div>
</div>
<div class="rate--reviews">
Reviews: 5
</div>
</div>
<div class="price">
<div class="price--label">
Price:
</div>
<div class="price--value">
$2,199
</div>
</div>
<button class="to-buy" data-qa="card-hover"> BUY </button>
</section>


<section class="product">
<div class="card" data-qa="card">
<div class="card__name">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</div>
<div class="card__product-code">
Product code: 195434
</div>
</div>
<div class="rate">
<div class="rate--stars rate--stars-4">
<div class="rate--stars__star"></div>
<div class="rate--stars__star"></div>
<div class="rate--stars__star"></div>
<div class="rate--stars__star"></div>
<div class="rate--stars__star"></div>
</div>
<div class="rate--reviews">
Reviews: 5
</div>
</div>
<div class="price">
<div class="price--label">
Price:
</div>
<div class="price--value">
$2,199
</div>
</div>
<button class="to-buy" data-qa="card-hover"> BUY </button>
</section>

<section class="product">
<div class="card" data-qa="card">
<div class="card__name">
APPLE A1419 iMac 27" Retina 5K Monoblock (MNED2UA/A)
</div>
<div class="card__product-code">
Product code: 195434
</div>
</div>
<div class="rate">
<div class="rate--stars rate--stars-4">
<div class="rate--stars__star"></div>
<div class="rate--stars__star"></div>
<div class="rate--stars__star"></div>
<div class="rate--stars__star"></div>
<div class="rate--stars__star"></div>
</div>
<div class="rate--reviews">
Reviews: 5
</div>
</div>
<div class="price">
<div class="price--label">
Price:
</div>
<div class="price--value">
$2,199
</div>
</div>
<button class="to-buy" data-qa="card-hover"> BUY </button>
</section>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The product sections are repeated with identical content. Consider using a template system or JavaScript to dynamically generate this content to avoid redundancy and make maintenance easier.

padding-top: 50px;
padding-inline: 40px;
display: grid;
grid-template-columns: repeat(var(--column-count), $card-width);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $card-width is used here, but it is not defined in this file. Ensure that $card-width is defined somewhere in your SCSS files before it is used.

.product {
margin-top: 1px;
margin-left: 1px;
width: $card-width;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $card-width is used here, but it is not defined in this file. Ensure that $card-width is defined somewhere in your SCSS files before it is used.

margin-top: 1px;
margin-left: 1px;
width: $card-width;
height: $card-height;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $card-height is used here, but it is not defined in this file. Ensure that $card-height is defined somewhere in your SCSS files before it is used.

margin-left: 1px;
width: $card-width;
height: $card-height;
border: 1px solid $white_color;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $white_color is used here, but it is not defined in this file. Ensure that $white_color is defined somewhere in your SCSS files before it is used.

display: flex;
justify-content: space-between;
margin-top: 24px;
padding-left: $padding-left;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $padding-left is used here, but it is not defined in this file. Ensure that $padding-left is defined somewhere in your SCSS files before it is used.

padding-left: $padding-left;

&--label {
color: $text-color;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $text-color is used here, but it is not defined in this file. Ensure that $text-color is defined somewhere in your SCSS files before it is used.

}

&--value {
color: $text-color-strong;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $text-color-strong is used here, but it is not defined in this file. Ensure that $text-color-strong is defined somewhere in your SCSS files before it is used.

@@ -0,0 +1,30 @@
.rate {
padding-left: $padding-left;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $padding-left is used here, but it is not defined in this file. Ensure that $padding-left is defined somewhere in your SCSS files before it is used.

}

&--reviews {
color: $text-color-strong;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $text-color-strong is used here, but it is not defined in this file. Ensure that $text-color-strong is defined somewhere in your SCSS files before it is used.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


Great job on addressing many of the issues in your code! 🎉 While there are still a few areas that need attention, such as ensuring the data-qa attributes are applied consistently and correcting the card width to 200px, your progress is commendable. Additionally, make sure all SCSS variables are defined to avoid compilation errors.

Remember, these improvements are crucial for the functionality and maintainability of your code. Keep up the good work, and continue learning from these experiences to enhance your coding skills! 🚀

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

<a
href="#laptops"
class="menu-item"
data-qa="nav-hover"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The data-qa attribute is applied to the 'Laptops & Computers' menu item. Ensure that this attribute is applied consistently across all menu items if required by the task.

</header>

<main class="main">
<section class="product" data-qa="card">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The data-qa attribute is applied to the section with class product. Ensure that this attribute is applied consistently across all product sections if required by the task.



<section class="product">
<div class="card" data-qa="card">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The data-qa attribute is applied to the card div. Ensure that this attribute is applied consistently across all card divs if required by the task.



.main {
padding-top: $main-padding-top;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $main-padding-top is used but not defined. Please define this variable to avoid compilation errors.


.main {
padding-top: $main-padding-top;
padding-inline: $main-padding-inline;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $main-padding-inline is used but not defined. Please define this variable to avoid compilation errors.

display: flex;
justify-content: space-between;
margin-top: 24px;
padding-left: $padding-left;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $padding-left is used but not defined. Please define this variable to avoid compilation errors.

padding-left: $padding-left;

&--label {
color: $text-color;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $text-color is used but not defined. Please define this variable to avoid compilation errors.

}

&--value {
color: $text-color-strong;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $text-color-strong is used but not defined. Please define this variable to avoid compilation errors.

@@ -0,0 +1,30 @@
.rate {
padding-left: $padding-left;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $padding-left is used but not defined. Please define this variable to avoid compilation errors.

}

&--reviews {
color: $text-color-strong;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable $text-color-strong is used but not defined. Please define this variable to avoid compilation errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants